﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows;

namespace myBoard.Framework.Forms
{
    public static class MessageBox
    {
        public static MessageBoxResult Show(string title, string desc)
        {
            return Show(title, desc, "myBoard", EventLogEntryType.Information, MessageBoxButton.OK);
        }

        public static MessageBoxResult Show(string title, string desc, string source)
        {
            return Show(title, desc, source, EventLogEntryType.Information, MessageBoxButton.OK);
        }

        public static MessageBoxResult Show(string title, string desc, string source, EventLogEntryType type)
        {
            return Show(title, desc, source, type, MessageBoxButton.OK);
        }

        public static MessageBoxResult Show(string title, string desc, string source, EventLogEntryType type, MessageBoxButton buttons)
        {            
            MBMessageBox msg = new MBMessageBox(desc, title, source, type, buttons);
            msg.ShowInTaskbar = false;
            msg.ShowDialog();
            return msg.Result;
        }
    }
}
